package top.ajunnihao.core.entity;

import lombok.Data;

import java.util.Date;

/**
 * TODO 帖子详细信息实体类
 *
 * @author AJun
 * @version 1.0.0
 * @date 2020/5/24
 */
@Data
public class Message {

    private Long id;
    private Integer creator;
    private String title = "";
    private String content = "";
    private Integer cat1 = 0;
    private Integer cat2 = 0;
    private Integer cat3 = 0;
    private Long ref1 = 0L; // 0表示主贴
    private Long ref2 = 0L;
    private String refstr = "";
    private Date timeCreate;
    private Date timeUpdate;
    private Integer niceFlag = 0;
    private Integer topFlag = 0;
    private Boolean banFlag = false;
    private Boolean delFlag = false;
    private Boolean closeFlag = false;
    private Integer numReply = 0;
    private Integer numLike = 0;
    private String storePath;
    private Integer imgCount = 0;
    private String img1 = "";
    private String img2 = "";
    private String img3 = "";
    private Integer replyUser;
    private String replyName;
    private Date replyTime;
    private String replyText;

    /**
     * 一对一 -> 一个帖子对应一个用户
     */
    private User user;

} 
 